package sctu.edu.java.year2016.team03.huzhou.day20160523.chapter5_3;

/**
 * Created by Administrator on 2016/5/23.
 */
public class work5_3 {
    public static void main(String[] args) {
        int arr[][] = new int[][]{{3, 6, 8, 1}, {8, 7, 3, 2}, {5, 3, 4, 6}};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                sum+=arr[i][j];
            }
        }
        System.out.println(sum);
    }
}
